home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / ply15dat.zip / SINSPH.PI < prev    next >
Text File  |  1992-09-19  |  784b  |  45 lines

  1. define picture_res 80
  2.  
  3. viewpoint {
  4.    from <0, 0, -10>
  5.    at <0,0,0>
  6.    up <0,1,0>
  7.    angle 30
  8.    aspect 2
  9.    resolution 2*picture_res, picture_res
  10.    }
  11.  
  12. file_flush picture_res
  13. background <0, 0, 0>
  14. light <-10,3, -20>
  15.  
  16. define sin_color_offset (sin(3.14 * fmod(x*y*z, 1)) + 1) / 2
  17. define sin_color <sin_color_offset, 0, 1 - sin_color_offset>
  18. define xyz_sin_texture
  19. texture {
  20.    special surface {
  21.       color sin_color
  22.       ambient 0.2
  23.       diffuse 0.8
  24.       specular white, 0.5
  25.       microfacet Reitz 10
  26.       }
  27.    }
  28.  
  29. object {
  30.    sphere <0, 0, 0>, 1
  31.    xyz_sin_texture
  32.    translate <-2.5, 0, 0>
  33.    }
  34.  
  35. object {
  36.    sphere <0, 0, 0>, 1
  37.    xyz_sin_texture
  38.    }
  39.  
  40. object {
  41.    sphere <0, 0, 0>, 1
  42.    xyz_sin_texture
  43.    translate < 2.5, 0, 0>
  44.    }
  45.